stopForeground

open fun stopForeground(@NonNull service: @NonNull Service, flags: Int)(source)

Remove the passed service from foreground state, allowing it to be killed if more memory is needed.

Parameters

service

service to remove.

flags

Additional behavior options: STOP_FOREGROUND_REMOVE, STOP_FOREGROUND_DETACH.

See also